package com.jiang.action;

import com.opensymphony.xwork2.ActionSupport;

public class PropertiesDemo extends ActionSupport {

	private static final long serialVersionUID = 1L;

	@Override
	public String execute() throws Exception {

		// 一旦配置文件按框架要求配置好，就相当于配置在一个配置文件我们还不用去找直接用
		String pageInfo = super.getText("news.add.page");
		System.out.println(pageInfo);
		// 处理占位符的情况
		String msg = super.getText("news.msg", new String[]{"C","JAVA","C#","C++","HTML"});
		System.out.println(msg);
		return SUCCESS;
	}
}
